package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {
    private ObjectId id; //主键id
    private Long userId;//发表用户id
    private String voice;//语音Url

    //状态 1：未被听过（默认），1：没有，0：听过
    private Integer state = 1;//状态

    private Long created;//语音发表时间
}
